package com.bestvike.stone.spring.shiro.auth;

import com.bestvike.stone.spring.shiro.SecurityUtils;
import com.bestvike.stone.spring.shiro.authc.AuthenticationInfo;
import com.bestvike.stone.spring.shiro.authz.AuthorizationInfo;

/**
 * 登录成功后,用户信息
 */
public interface Auth extends AuthenticationInfo, AuthorizationInfo {
    /**
     * 更新用户信息
     */
    default void save() {
        SecurityUtils.getCacheManager().save(this);
    }
}
